#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:jidi
@file:ceshiren.py
@time:2022/08/27
"""
from selenium import webdriver
from selenium.webdriver.common.by import By

from web.demo.search import Search


class Ceshiren:
    def open(self):
        self.driver = webdriver.Chrome()
        self.driver.get("https://ceshiren.com/")
        # self.driver.implicitly_wait(5)

    def open_search(self):
        self.driver.find_element(By.ID, 'search-button').click()
        return Search(self.driver)
